import { Result, Button } from "antd"
import { useHistory } from "react-router-dom"
const NotFound = () => {
  const history = useHistory()
  return (
    <Result
      status="404"
      title="404"
      subTitle="对不起,您访问的页面去火星了"
      extra={
        <Button type="primary" onClick={() => history.push("/home")}>
          回主页
        </Button>
      }
    />
  )
}
export default NotFound
